<?php echo $header;echo $sidebar ?>		
	
	<link rel="stylesheet" href="<?php echo base_url(); ?>assets/admin/css/new_font-awesome.css"/>
	<link href="<?php echo $this->config->base_url(); ?>assets/admin/css/jquery-ui.css" rel="stylesheet">
	<link href="<?php echo $this->config->base_url(); ?>assets/admin/css/chosen.css" rel="stylesheet">
	<link href="<?php echo $this->config->base_url(); ?>assets/admin/css/chosen-bootstrap.css" rel="stylesheet">
	<script type="text/javascript" src="<?php echo $this->config->base_url(); ?>assets/admin/js/chosen.jquery.js"></script>
	<script type="text/javascript" src="<?php echo $this->config->base_url(); ?>assets/admin/js/jquery-ui.js"></script>
	<script src="<?php echo $this->config->base_url(); ?>assets/admin/media/js/jquery.dataTables.columnFilter.js" type="text/javascript"></script>
	<style type="text/css">
	.text_filter {
		width: 100% !important;
		border: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		padding:0 !important;
		margin:0 !important;
		font-size: 1em !important;
	}
	.select_filter {
		width: 100% !important;
		padding:0 !important;
		height: auto !important;
		margin:0 !important;
	}
	.btn-group, .btn-group-vertical {display: inline-block;position: relative;vertical-align: middle;}
	* {border-radius: 0 0 0 0 !important;box-shadow: none !important;font-family: "Open Sans",Arial,Helvetica,sans-serif;font-weight: 400;text-shadow: none !important;}
	.btn-group > .btn:first-child {margin-left: 0;}
	.btn-group a.btn {margin: 0 !important;}
	.btn.btn-primary {background: none repeat scroll 0 0 #1171A3 !important;}
	.btn-xs {padding: 1px 5px;}
	.btn-sm, .btn-xs {border-radius: 3px 3px 3px 3px;font-size: 12px;line-height: 1.5;padding: 2px 5px;}
	.btn-group, .btn-group-vertical {
    	display: inline-block;
    	position: relative;
    	vertical-align: middle;
	}
	
	.modal-header .close {margin-top: -2px;}
	.modal-content {box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);}
	.modal-content {
		background-clip: padding-box;
	    background-color: #FFFFFF;
	    border: 1px solid rgba(0, 0, 0, 0.2);
	    border-radius: 6px 6px 6px 6px;
	    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
	    outline: 0 none;
	    position: relative;
	}	
	button.close {background: none repeat scroll 0 0 transparent;border: 0 none;cursor: pointer;padding: 0;}

	</style>
	
	<script type="text/javascript" charset="utf-8">
			$(document).ready( function () {
				$('#fileData').dataTable({
					"sDom": 'T<"clear">lfrtip',
					"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
	                "aaSorting": [[ 1, "desc" ]],
	                "iDisplayLength": '10',
				     "oTableTools": {
				    	 	"sSwfPath" : "<?php echo $this->config->base_url(); ?>/assets/admin/media/swf/copy_csv_xls_pdf.swf",
				    	 	"aButtons": [
					    	 				"csv",
					    	 				"xls",
					    	 				{
					    	 					"sExtends": "pdf",
					    	 					"sPdfOrientation": "landscape",
					    	 					"sPdfMessage": "Your custom message would go here."
					    	 				},
					    	 				"print"
				    	 				]
						},
					"aoColumns": [{ "bSortable": false }, null, null, null, { "bSortable": false }]
				})
			});
		</script>
	
	<div class="span10 content">

		<?php echo $hugemenu ?>

		<h1><?php echo lang('invoice_page_title');?></h1>
		
		<?php if($success_message) { echo "<div class=\"alert alert-success\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $success_message . "</div>"; } ?>
		<?php if($message) { echo "<div class=\"alert alert-danger\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $message . "</div>"; } ?>

		<div>
		
			<table id="fileData" cellpadding=0 cellspacing=10 class="table table-bordered table-condensed table-hover table-striped" style="margin-bottom: 5px;">
		      <thead>
		        <tr>
		          <th style="width:35px;"><?php echo $this->lang->line('no'); ?></th>
		          <th><?php echo $this->lang->line('estate_title'); ?></th>
		          <th><?php echo $this->lang->line('sale_tax_rate'); ?></th>
		          <th><?php echo $this->lang->line('estate_add_selectbox_type'); ?></th>
		          <th style="width:100px;"><?php echo $this->lang->line('customer_form_actions'); ?></th>
		        </tr>
		      </thead>
		      <tbody>
		        <?php 
				$r = 1;
				foreach ($tax_rates as $row):?>
		        <tr>
		          <td><?php echo $r; ?></td>
		          <td><?php echo $row->name; ?></td>
		          <td><?php echo $row->rate; ?></td>
		          <td><?php switch ($row->type) {
										case 1:
											echo "Percentage (%)";
											break;
										case 2:
											echo "Fixed ($)";
											break;
								}
							?></td>
		          <td><?php echo '<center><div class="btn-group"> <a class="tip btn btn-primary btn-xs" title="'. $this->lang->line('update_tax_rate').'"  href="invoiceEditTaxRate?id=' . $row->id . '"> <i class="fa fa-edit"></i> </a> <a class="tip btn btn-danger btn-xs" title="'.$this->lang->line('delete_tax_rate').'" href="invoiceDeleteTaxRate?id=' . $row->id . '" onClick="return confirm(\''. $this->lang->line('alert_x_tax_rate') .'\')"> <i class="fa fa-trash-o"></i> </a></div></center> 
										
									
		                '; ?></td>
		        </tr>
		        <?php $r++; endforeach;?>
		      </tbody>
    		</table>
    		<p><a href="<?php echo site_url('admin/invoiceAddTaxRate');?>" class="btn btn-primary"><?php echo $this->lang->line('invoice_new_tax_rate'); ?></a></p>
		</div>
		
	</div><!--/content-->

	<script src="<?php echo $this->config->base_url(); ?>assets/admin/js/jquery-ui-1.10.2.custom.min.js"></script> <!-- jQuery UI -->
	<script src="<?php echo $this->config->base_url(); ?>assets/admin/js/sparklines.js"></script>
	<script src="<?php echo $this->config->base_url(); ?>assets/admin/js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
	<script src="<?php echo $this->config->base_url(); ?>assets/admin/js/bootstrap-datetimepicker.min.js"></script> <!-- Date picker -->
	<script src="<?php echo $this->config->base_url(); ?>assets/admin/js/DT_bootstrap.js"></script> <!-- jQuery UI -->
	<script src="<?php echo $this->config->base_url(); ?>assets/admin/js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->
	
<?php echo $footer ?>